<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        // 形参的个数，与实参传几个没有关系  --- 不会出现报错



        // 形参有两个，实参传4个也不会报错

        function sum(a , b) {
            return a + b ;
        }


        console.log(sum(1,2,3,4));





        // 想计算多个数的和？？？

    </script>
    
</body>
</html>